package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.DestinationQuery;
import cn.wolfcode.luowowo.common.query.QueryObject;
import cn.wolfcode.luowowo.common.util.AjaxResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDestinationService {
    PageInfo query(DestinationQuery qo);

    List<Destination> toastsList(Long parentId);

    AjaxResult changeHotState(Long id, int hot);

    AjaxResult setInfo(Long id, String info);

    List<Destination> selectAll();

    List<Destination> listHotDestByParentId(Long parentId);

    List<Destination> listHotDestByRegionId(Long regionId);

    Destination get(Long id);

    List<Destination> list();

    /**
     * 获取国家
     * @param destId
     * @return
     */
    Destination getCountry(Long destId);

    /**
     * 获取省份
     * @param destId
     * @return
     */
    Destination getProvince(Long destId);

    List<Destination> queryDestination(QueryObject qo);

    List<Destination> getByUserId(Long userId);

    List<Destination> getDestByDeep(int deep);
}
